package com.goods.common.model.business;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.goods.common.vo.business.ProductCategoryTreeNodeVO;
import lombok.Data;

import javax.persistence.Id;
import javax.persistence.Table;
import java.util.Comparator;
import java.util.Date;
import java.util.List;

/**
 * @Author: 赵勇镔
 * @Time: 2021/6/7 16:21
 * @Description:
 */

@Table(name = "biz_product_category")
@Data
public class ProductCategoryTreeNode {
    @Id
    private Long id;

    private String name;

    private String remark;

    private Integer sort;



    @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")
    private Date createTime;


    @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")
    private Date modifiedTime;

    private Long pid;

    private List<ProductCategoryTreeNodeVO> children;

}
